Optimal. Leaf size=88 \[ \frac {\left (1-a^2 x^2\right )^{3/2}}{7 a^3 (1-a x)^5}-\frac {12 \left (1-a^2 x^2\right )^{3/2}}{35 a^3 (1-a x)^4}+\frac {23 \left (1-a^2 x^2\right )^{3/2}}{105 a^3 (1-a x)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {1653, 807, 673,
665} \begin {gather*} \frac {23 \left (1-a^2 x^2\right )^{3/2}}{105 a^3 (1-a x)^3}-\frac {12 \left (1-a^2 x^2\right )^{3/2}}{35 a^3 (1-a x)^4}+\frac {\left (1-a^2 x^2\right )^{3/2}}{7 a^3 (1-a x)^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 665
Rule 673
Rule 807
Rule 1653
Rubi steps
\begin {align*} \int \frac {x^2 \sqrt {1-a^2 x^2}}{(1-a x)^5} \, dx &=-\frac {\left (1-a^2 x^2\right )^{3/2}}{a^3 (1-a x)^4}+\frac {\int \frac {\left (4 a^2-3 a^3 x\right ) \sqrt {1-a^2 x^2}}{(1-a x)^5} \, dx}{a^4}\\ &=\frac {\left (1-a^2 x^2\right )^{3/2}}{7 a^3 (1-a x)^5}-\frac {\left (1-a^2 x^2\right )^{3/2}}{a^3 (1-a x)^4}+\frac {23 \int \frac {\sqrt {1-a^2 x^2}}{(1-a x)^4} \, dx}{7 a^2}\\ &=\frac {\left (1-a^2 x^2\right )^{3/2}}{7 a^3 (1-a x)^5}-\frac {12 \left (1-a^2 x^2\right )^{3/2}}{35 a^3 (1-a x)^4}+\frac {23 \int \frac {\sqrt {1-a^2 x^2}}{(1-a x)^3} \, dx}{35 a^2}\\ &=\frac {\left (1-a^2 x^2\right )^{3/2}}{7 a^3 (1-a x)^5}-\frac {12 \left (1-a^2 x^2\right )^{3/2}}{35 a^3 (1-a x)^4}+\frac {23 \left (1-a^2 x^2\right )^{3/2}}{105 a^3 (1-a x)^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.42, size = 50, normalized size = 0.57 \begin {gather*} \frac {\sqrt {1-a^2 x^2} \left (2-8 a x+13 a^2 x^2+23 a^3 x^3\right )}{105 a^3 (-1+a x)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(257\) vs.
\(2(76)=152\).
time = 0.07, size = 258, normalized size = 2.93
method | result | size |
gosper | \(\frac {\sqrt {-a^{2} x^{2}+1}\, \left (23 a^{2} x^{2}-10 a x +2\right ) \left (a x +1\right )}{105 \left (a x -1\right )^{4} a^{3}}\) | \(44\) |
trager | \(\frac {\left (23 a^{3} x^{3}+13 a^{2} x^{2}-8 a x +2\right ) \sqrt {-a^{2} x^{2}+1}}{105 \left (a x -1\right )^{4} a^{3}}\) | \(47\) |
default | \(-\frac {2 \left (\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{5 a \left (x -\frac {1}{a}\right )^{4}}-\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{15 \left (x -\frac {1}{a}\right )^{3}}\right )}{a^{6}}-\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{3 a^{6} \left (x -\frac {1}{a}\right )^{3}}-\frac {\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{7 a \left (x -\frac {1}{a}\right )^{5}}-\frac {2 a \left (\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{5 a \left (x -\frac {1}{a}\right )^{4}}-\frac {\left (-a^{2} \left (x -\frac {1}{a}\right )^{2}-2 a \left (x -\frac {1}{a}\right )\right )^{\frac {3}{2}}}{15 \left (x -\frac {1}{a}\right )^{3}}\right )}{7}}{a^{7}}\) | \(258\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 153 vs.
\(2 (73) = 146\).
time = 0.29, size = 153, normalized size = 1.74 \begin {gather*} \frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{7 \, {\left (a^{7} x^{4} - 4 \, a^{6} x^{3} + 6 \, a^{5} x^{2} - 4 \, a^{4} x + a^{3}\right )}} + \frac {29 \, \sqrt {-a^{2} x^{2} + 1}}{35 \, {\left (a^{6} x^{3} - 3 \, a^{5} x^{2} + 3 \, a^{4} x - a^{3}\right )}} + \frac {82 \, \sqrt {-a^{2} x^{2} + 1}}{105 \, {\left (a^{5} x^{2} - 2 \, a^{4} x + a^{3}\right )}} + \frac {23 \, \sqrt {-a^{2} x^{2} + 1}}{105 \, {\left (a^{4} x - a^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.83, size = 102, normalized size = 1.16 \begin {gather*} \frac {2 \, a^{4} x^{4} - 8 \, a^{3} x^{3} + 12 \, a^{2} x^{2} - 8 \, a x + {\left (23 \, a^{3} x^{3} + 13 \, a^{2} x^{2} - 8 \, a x + 2\right )} \sqrt {-a^{2} x^{2} + 1} + 2}{105 \, {\left (a^{7} x^{4} - 4 \, a^{6} x^{3} + 6 \, a^{5} x^{2} - 4 \, a^{4} x + a^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \int \frac {x^{2} \sqrt {- a^{2} x^{2} + 1}}{a^{5} x^{5} - 5 a^{4} x^{4} + 10 a^{3} x^{3} - 10 a^{2} x^{2} + 5 a x - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 287, normalized size = 3.26 \begin {gather*} \frac {2\,\sqrt {1-a^2\,x^2}}{7\,\left (a^7\,x^4-4\,a^6\,x^3+6\,a^5\,x^2-4\,a^4\,x+a^3\right )}+\frac {4\,\sqrt {1-a^2\,x^2}}{3\,\left (a^5\,x^2-2\,a^4\,x+a^3\right )}+\frac {4\,a\,\sqrt {1-a^2\,x^2}}{35\,\left (a^6\,x^2-2\,a^5\,x+a^4\right )}+\frac {29\,\sqrt {1-a^2\,x^2}}{35\,\sqrt {-a^2}\,\left (a\,\sqrt {-a^2}-3\,a^2\,x\,\sqrt {-a^2}+3\,a^3\,x^2\,\sqrt {-a^2}-a^4\,x^3\,\sqrt {-a^2}\right )}+\frac {23\,\sqrt {1-a^2\,x^2}}{105\,\left (a\,\sqrt {-a^2}-a^2\,x\,\sqrt {-a^2}\right )\,\sqrt {-a^2}}-\frac {2\,a^2\,\sqrt {1-a^2\,x^2}}{3\,\left (a^7\,x^2-2\,a^6\,x+a^5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________